Latest Questions

MediaSource never emit sourceopen event in React

I'm trying to stream a video file using Javascript's MediaSource API in a React custom hook. Here's the snippet of my code: const useMyHook = (videoRef: React.M

How to find neighbors average in matrix and assign it to a real number struct?

I have this assignment for college where i recieve the matrix A and i need to create the matrix B, where in each cell there whould be the neighbor's average of

Angular 8 ERROR Error: Unable to find context associated with [object HTMLDivElement]

Just another day in the office, right? What once worked is no longer working. Yay! I am supporting an Angular 8 web application and attempting to kickstart loca

Why is ForEach not changing my Foreground color correctly in SwiftUI?

I am trying to make a simple Todo app and I'm trying to implement a feature where if I click on a row, the foreground color will be change. However, I have two

Create table from simple UNION statement

What is wrong with this union? first 'select' and ')' are incorrect create table GL_ALL ( select *from GL1 ) UNION ( select *from GL2 ) UNION ( select

Is it possible to install mssql-tools in raspberry pi (ARM)

I'm trying to use a raspberry to make backups of a SQL server and upload the file to the cloud, however, I don't know if it would be possible to do this due to

If there is a difference between two constructs

If there is a difference between two constructs I would like to know std::string name = std::string("Eugene"); and std::string name = "Eugene";

Syncing Exchange-based Calendar externally

My company is running a Microsoft Exchange server where our emails and calendars are stored. There does not seem to be a way to share my (live) calendar (e.g vi

useQueries how to get response for a certain query

Is it possible to distinguish the response, we get from useQueries. For example const ids = ['dg1', 'pt3', 'bn5']; const data = useQueries( ids.map(id => (

Angular TreeView JSON response

I am new to Angular and i need your help !!! I have a TreeView in my Angular project. i can generate TreeView from my API Response. My problem is I don't know h

Bitshifting a uint64_t gives wrong result

As was said in the title, bitshifting a uint64_t type gives wrong results. I have absolutely no idea why this is the case. It seems like on the edges of the shi

How to extract all datas from xml DOM in node JS

I am going to extract all attributes and texts from xml DOM in express Now I am using xml-query node module <?xml version="1.0"?> <OrderMessage

Angular ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy')

I have problem. Angular is sometimes showing error ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy') I am getting this error when I am

How can I install pyaudio on a mac with M1 chip? (Have tried homebrew and portaudio already)

I am trying to install pyaudio on my Mac, but I keep getting an error. I have tried using homebrew, then installing portaudio, but still, get the same error. I

How to create a comparison plot from an Excel file with many worksheets

I want to create a plot that will have in the x axis the months and for each country it will show the Orders per month. Attempting to create a function that rea

i get always a 0 as a returned value, can anyone help me to extract that value and use it for further calculations ,and thanks

this is the code , i get always a 0 as a returned value, can anyone help me to extract that value and use it for further calculations , i'm new in python espess

Grails 4 Mapping exception - org.grails.datastore.mapping.model.IllegalMappingException: Non-existent mapping property

I am upgrading from grails 2.5.4 to 4 and getting the following error in grails 4 : Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constru

Issue with worksheet object and LoadPicture in VBA

I have been working on an excel macro and have come across an issue that doesn't make sense to me. I have on two of my sheets, (Sheets("Printing Sheet") and She

cannot connect to Postgres - password unknown

I can't connect on postgresql. when i go on pgadmin>server>postgresql, it asked me "please enter the password for the user 'postgres' to connect the serve

Google sheet script to search and retrieve Gmail data

I've started a script that matches an email address in Col D with Gmail and writes the last message date in Col E. I'd like that script to repeat row by row - n

How to get all Candy Machine Ids on solana chain by web3 or json rpc

I wanna get all Candy Machine Ids on chain by web3 or json rpc call. I have tried with getProgramAccounts json rpc but have response with Maximum response size

Blazor WASM Load and display large pdfs by splitting them as streams

I'm working on a Blazor WASM App and I want my users to easily open pdf files on specific pages that contain additional information. I cannot distribute those f

How to make AgGridReact rows lower z-index

I have a cell renderer that shows an mgt-person fine but the hover mgt-person-card goes behind the following ag-rows. I tried .ag-row { z-index: -unset !i

ngIf display button if a field has certain value in Database

I need to have a button (by ngIf) when a field in Db has certain value, Any Idea? Do I need store procedure and.. Thanks

Python: Compare values of two fields with multiple strings and add all unique values to a 3rd field

I am still a Python-Rookie and are stuck with an idea. I want to compare the values of Type1 with Type2 and add all unique values to a 3rd field. My demo data:

There is a data base that stores the image path. Is there a way to implement that path?

@member.route("/createreport") def Createreport(): if "username" not in session: return render_template('login.html',headername="Login เ#

Spark dataframe from dictionary

I'm trying to create a spark dataframe from a dictionary which has data in the format {'33_45677': 0, '45_3233': 25, '56_4599': 43524} .. etc. dict_pairs={'33

Web crawl angular website for elasticsearch indexing

Is there a way to index an angular website using the web crawler functionality of elasticsearch?

Editing a TextField in preview

I am trying to add a TextField in SwiftUI. It successfully appears with the initial text, but it is not editable in the preview display, only when I run a simul

ln-service (npm-package) [ 400, 'ExpectedLndToCreateNewInvoice' ]

I'm using ln-service package and I'm connected to a local instance of lnd node (created with polar). I'm using plain js. import lnservice from 'ln-service'; l